package com.zml.cruddemo.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import com.zml.cruddemo.entity.User;

@Mapper
public interface UserMapper {
	User getById(Integer id);

	List<User> getList(Map<String, Object> map);

	int insert(User user);

	void deleteUserById(int id);

	void updateUser(User currentUser);

	void saveUser(User user);

	int getTotle();
}
